document.writeln("<script type='text/javascript' charset='utf-8' src='/static/js/KindEditor/kindeditor-min.js'></script>");
document.writeln("<script type='text/javascript' charset='utf-8' src='/static/js/KindEditor/lang/zh_CN.js'></script>");
function EDbuildById(dom_id){
	KindEditor.ready(function(K) {
		editor=K.create('#'+dom_id, {
			cssPath : '/static/js/KindEditor/plugins/code/prettify.css',
			uploadJson : '/?g=admin&m=editor&a=save',
			allowFileManager : false,
			items:[
				'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
				'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
				'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
				'superscript', 'clearhtml', 'quickformat', 'selectall', '|', '/',
				'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
				'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
				'flash', 'emoticons', 'media', 'insertfile', 'table', 'hr', 'baidumap', 'pagebreak',
				'anchor', 'link', 'unlink', 'fullscreen'
			],
			afterBlur: function(){this.sync();}
		});
	});
}
function EDbuildByIdMini(dom_id){
	KindEditor.ready(function(K) {
		editor=K.create('#'+dom_id, {
			cssPath : '/static/js/KindEditor/plugins/code/prettify.css',
			uploadJson : '/?g=admin&m=editor&a=save',
			allowFileManager : false,
			items:[
				'source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link'
			],
			afterBlur: function(){this.sync();}
		});
	});
}